<html>



<script language="javascript">



function retour(par_page,ctrlok) 

{

 if (ctrlok != '' && ! ctrlForm()) return false;

alert(par_page);

 var docLeft    = document.location.href;

 docLeft = docLeft.substring(0,docLeft.lastIndexOf("/") + 1);

 document.location  = docLeft +  par_page;

}



function arrondi(valeur, precision)

{

  valeur = "" + valeur;

  precision = parseInt(precision);

  var tout = "" + Math.round(valeur * Math.pow(10, precision));

  var point = tout.length - precision;

  if  (point != 0)

  {

       resultat = tout.substring(0, point);

       resultat += ".";

       resultat += tout.substring(point, tout.length);

  }

  else

  {

       resultat = tout;

  }

  return resultat;

}      



function ctrlDate (par_obj) {

   var date_sais = par_obj.value;

   if (par_obj.value == "") return true;

   

   var datePat = /^ *$/;

   var matchArray = date_sais.match(datePat); // format ok?

   if (matchArray != null) return true;



   datePat = /^(\d{1,2})(\/|-|\.)(\d{1,2})\2(\d{2}|\d{4})$/;

   matchArray = date_sais.match(datePat); // format ok?

   if (matchArray == null) {

          alert("<!--WSTAG name="Err_date" -->");

          par_obj.value = par_obj.defaultValue;

          return false;

   }

   month = matchArray[3];

   day   = matchArray[1];

   year  = matchArray[4];

   if (parseInt(year) < 100 )

      { year = parseInt(year) + 2000}

   if (month < 1 || month > 12) { // mois valide

      alert("<!--WSTAG name="Err_date" -->");

      par_obj.value = par_obj.defaultValue;

      return false;

   }

   if (day < 1 || day > 31) {

      alert("<!--WSTAG name="Err_date" -->");

      par_obj.value = par_obj.defaultValue;

      return false;

   }

   if ((month==4 || month==6 || month==9 || month==11) && day==31) {

      alert("<!--WSTAG name="Err_date" -->");

      par_obj.value = par_obj.defaultValue;

      return false;

   }

   if (month == 2) { // Ann?e bissextile

      var bissex = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));

      if (day>29 || (day==29 && !bissex)) {

         alert("<!--WSTAG name="Err_date" -->");

         par_obj.value = par_obj.defaultValue;

         return false;

      }

   }



   par_obj.value = day + "/" + month + "/" + year;

   return true;

}



function ctrlDeci (par_obj,par_format) {

   if (par_obj.value == "") return true;



   var val_sais   = par_obj.value;

   var valPat = /^ *$/;

   var matchArray = val_sais.match(valPat); // format ok?

   if (matchArray != null) return true;



   var form_array = par_format.split("\.");

   valPat     = new RegExp("^(\\d{0," + form_array[0] + "})(\\.)(\\d{0,"

                                      + form_array[1] + "})$");

   matchArray = val_sais.match(valPat); // format ok?

   if (matchArray == null) {

      valPat = /^(\d{1,3})$/;

      matchArray = val_sais.match(valPat); // format ok?

      if (matchArray == null) {

          alert('<!--WSTAG name="Err_deci" -->');

          par_obj.value = par_obj.defaultValue;

          return false;

      }

      else {

         par_obj.value = par_obj.value + '.00';

      }

   }

   else {

      var i = val_sais.length;

      var j = val_sais.lastIndexOf(".",val_sais);



      if (j == i - 1) par_obj.value = par_obj.value + "00";

      

      if (j == i - 2) par_obj.value = par_obj.value + "0";

   }

   return true;

}



function ctrlEnti (par_obj,par_format) {

if (par_obj.value == "") return true;



   var val_sais   = par_obj.value;

   var valPat = /^ *$/;

   var matchArray = val_sais.match(valPat); // format ok?

   if (matchArray != null) return true;



   valPat     = new RegExp("^(\\d{0," + par_format + "})$");

   matchArray = val_sais.match(valPat); // format ok?

   if (matchArray == null) {

       alert("<!--WSTAG name="Err_deci" -->");

       par_obj.value = par_obj.defaultValue;

       return false;

   }

   return true;

}



function ctrlZone (par_obj,type,format) {

   if (type == 1) { if ( ! ctrlDate(par_obj)) return false;}

   if (type == 2) { if ( ! ctrlDeci(par_obj,format)) return false;}

   if (type == 3) { if ( ! ctrlEnti(par_obj,format)) return false;}

   return true;

}





</script>



<head>

<meta http-equiv="Content-Language" content="fr-ch">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta name="GENERATOR" content="">

<meta name="ProgId" content="">

<title>Commande</title>

<meta name="Microsoft Theme" content="none">

</head>



<body><body text="#000000" bgcolor="FFFFFF">



<form method="POST" action="commande.w" name="commande">

  <!--WSTAG name="monnaie_doc" -->

  <!--WSTAG name="article_ent" -->

  <!--WSTAG name="article_sais" -->

  <!--WSTAG name="article_bas" -->

  <br>

  <!--WSTAG name="navigue" -->&nbsp;&nbsp;<!--WSTAG name="lablien2 -->&nbsp;&nbsp;<!--WSTAG name="lablien3 -->

  <input type="hidden" name="refs" value="?">

  <input type="hidden" name="par-id" value="?">

  <input type="hidden" name="lang" value="?">

  <input type="hidden" name="par-nosui" value="?">

  <input type="hidden" name="par-retour" value="?">

</form>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3511693-1";
urchinTracker();
</script>


</body>



